From: Richard M. Stallman Date: Thu, 14 Apr 1994 12:01:31 +0000 (+0000) Subject: (gettimeofday): If system doesn't have this, define it to give a fatal error. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~92186 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=c01fd0771981bc96c135e72e162821a0deba3d84;p=emacs.git (gettimeofday): If system doesn't have this, define it to give a fatal error. --- diff --git a/lib-src/profile.c b/lib-src/profile.c index b204e13c20f..523659c5586 100644 --- a/lib-src/profile.c +++ b/lib-src/profile.c @@ -38,6 +38,14 @@ static struct timezone *tzp = (struct timezone *) NULL; /* no need timezone */ static int watch_not_started = 1; /* flag */ static char time_string[30]; +#ifndef HAVE_GETTIMEOFDAY +gettimeofday () +{ + fprintf (stderr, "profile: this system does not support gettimeofday\n"); + exit (1); +} +#endif + /* Reset the stopwatch to zero. */ int